package com.link.base.base.wechat.service;

import com.link.base.base.wechat.model.WxMedia;
import com.link.base.wechat.mpnews.model.Article;
import com.link.core.basic.service.BasicService;

import java.util.List;
import java.util.Map;

/**
 * WxMedia-微信素材中间表 
 *
 * @author 路江
 * @date 2019/05/22 10:12
 */
public interface WxMediaService extends BasicService<WxMedia> {

    /**
     * 微信素材保存
     *
     * @author lujiang
     * @date 2019-05-22
     * @param articles 图文素材对象
     * @return
     * @throws Exception
     */
    Map<String,Object> saveAndSendArticle(List<Article> articles) throws Exception;

    /**
     * 查询素材-公众号中间表
     *
     * @author lujiang
     * @date 2019-05-27
     * @param wxMedia 素材-公众号中间表对象
     * @return
     * @throws Exception
     */
    WxMedia queryByMediaId(WxMedia wxMedia) throws Exception;
}
